package com.bwhx.eruler.service.casdilly.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.casdilly.ClothesTypeExport;
import com.bwhx.eruler.dao.casdilly.IClothesTypeExportDAO;
import com.bwhx.eruler.service.casdilly.IClothesTypeExportService;

@Service
public class ClothesTypeExportServiceImpl implements IClothesTypeExportService {
	@Autowired IClothesTypeExportDAO clothesTypeExportDAO;

	@Override
	public List<ClothesTypeExport> list(Page entity) {
		return clothesTypeExportDAO.queryClothesTypeExport(entity);
	}

	@Override
	public Integer count(ClothesTypeExport entity) {
		return clothesTypeExportDAO.queryClothesTypeExportCount(entity);
	}

	@Override
	public void insert(ClothesTypeExport entity) {
		clothesTypeExportDAO.addClothesTypeExport(entity);		
	}

	@Override
	public void update(ClothesTypeExport entity) {
		clothesTypeExportDAO.updateClothesTypeExport(entity);		
	}

	@Override
	public void delete(ClothesTypeExport entity) {
		clothesTypeExportDAO.deleteClothesTypeExport(entity);		
	}

	@Override
	public List<ClothesTypeExport> getClothesTypeExportByCategoryName(String categoryName) {
		return clothesTypeExportDAO.getClothesTypeExportByCategoryName(categoryName);
	}

	@Override
	public String SaveClothesTypeExports(List<ClothesTypeExport> entities) {
		return clothesTypeExportDAO.saveClothesTypeExports(entities);
		
	}

}
